package com.example.demo.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.ToString;

/**
 * @author kaixuan.xu
 * @version 1.0.0
 * @date 2018/12/10 19:38
 * @description 用户
 */
@Entity
@Table(name = "person")
@ToString
public class Person extends BaseEntity {

  private static final long serialVersionUID = 3463308810641999534L;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "id")
  private Long id;
  @Column(name = "name")
  private String name;
  @Column(name = "mobile")
  private String mobile;
  @Column(name = "company_id")
  private Long companyId;
  @Column(name = "cert_no")
  private String certNo;
  private Integer certType;
  private String nation;
  private Date authTime;
  private String bankNo;

  private String bankBranchName;

  @Column(name = "bank_name")
  private String bankName;
  @Column(name = "status")
  private Integer status;

  @Column(name = "user_id")
  private Long userId;

  @Column(name = "card_image_front")
  private String cardImageFront;

  @Column(name = "card_image_back")
  private String cardImageBack;

  @Column(name = "username")
  private String username;

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getMobile() {
    return mobile;
  }

  public void setMobile(String mobile) {
    this.mobile = mobile;
  }

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public String getCertNo() {
    return certNo;
  }

  public void setCertNo(String certNo) {
    this.certNo = certNo;
  }

  public Integer getCertType() {
    return certType;
  }

  public void setCertType(Integer certType) {
    this.certType = certType;
  }

  public String getNation() {
    return nation;
  }

  public void setNation(String nation) {
    this.nation = nation;
  }

  public Date getAuthTime() {
    return authTime;
  }

  public void setAuthTime(Date authTime) {
    this.authTime = authTime;
  }

  public String getBankNo() {
    return bankNo;
  }

  public void setBankNo(String bankNo) {
    this.bankNo = bankNo;
  }

  public String getBankBranchName() {
    return bankBranchName;
  }

  public void setBankBranchName(String bankBranchName) {
    this.bankBranchName = bankBranchName;
  }

  public String getBankName() {
    return bankName;
  }

  public void setBankName(String bankName) {
    this.bankName = bankName;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public String getCardImageFront() {
    return cardImageFront;
  }

  public void setCardImageFront(String cardImageFront) {
    this.cardImageFront = cardImageFront;
  }

  public String getCardImageBack() {
    return cardImageBack;
  }

  public void setCardImageBack(String cardImageBack) {
    this.cardImageBack = cardImageBack;
  }


}

